from django.db import models


class protype(models.Model):
    name = models.CharField(max_length=50,null=True)

class proInfo(models.Model):
    name = models.CharField(max_length=50,null=True)
    type = models.ForeignKey(protype,models.CharField)
    addTime = models.DateTimeField(auto_now_add=True)
    isdestroy = models.BooleanField(default=0,null=True)
    unit = models.CharField(max_length=50)
    price = models.CharField(max_length=50,null=True)
    description = models.CharField(max_length=300)